<fieldset class="load-fieldset">
	<label  class="labeltabledata">รายการประเภทข่าว</label>
	<table border="1px solid #666;">
    	<thead>
        	<tr>
                <th>ประเภทข่าว</th>
                <th>แก้ไข</th>
                <th>ลบ</th>
            </tr>
        </thead>
        <tbody>
        	<?php
			require_once('../config.ini.php');
			$sql="SELECT noticetype.noticetypeid, noticetype.noticetypename FROM noticetype WHERE noticetype.noticestatus = '1' ORDER BY noticetype.noticetypeid DESC";
			$result=mysql_query($sql);
			while($row=mysql_fetch_array($result)){
			?>
        	<tr>
                <td><?php echo $row['1']; ?></td>
                <td class="td-edit"><a href="#" onclick="listnoticetype(<?php echo $row["0"]; ?>)"><img width="24px;" height="24px;"  src="../images/Edit_48.png" /></a></td>
                <td class="td-del"><a href="#" onclick="deleteitem('delnoticetype',<?php echo $row["0"]; ?>,'noticetype.php')"><img  width="24px;" height="24px;" src="../images/delete-48.png" /></a></td>
            </tr>
            <?php
			}
			mysql_free_result($result);
			?>
        </tbody>
    </table>
</fieldset>